namespace CSharpPro._0918;

public class Phone
{
    public string Brand { get; set; }
    public int Weight { get; set; }
    public long Camera { get; set; }
    public int Price { get; set; }
    // 打印手机信息的方法
    public void PrintPhoneInfo()
    {
        System.Console.WriteLine($"品牌：{Brand}");
        System.Console.WriteLine($"重量：{Weight}g");
        System.Console.WriteLine($"后置摄像头像素：{Camera}");
        System.Console.WriteLine($"价格：{Price}");
    }
} 
